package com.oa.service.user.impl;

import java.util.List;

import com.oa.dao.user.UserDao;
import com.oa.model.User;
import com.oa.service.user.UserService;

public class UserServiceImpl implements UserService{
	UserDao userDao;
	
	public User find(int id) {
		User user = userDao.find(id);
		return user;
	}

	public List<User> findAll() {
		List<User> userList = userDao.findAll();
		return userList;
	}

	public void remove(int id) {
		userDao.remove(id);
		
	}

	public void save(User user) {
		userDao.save(user);
		
	}

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

}
